import {RequestUtil} from '@/utils'

export class UnionMallHttp {
    static PREFIX = "/manager/union/mall"



    static getKindPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/kind/pageList`, params)

    static addKind = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/kind/add`, data)

    static updateKind = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/kind/update/${id}`, data)

    static delKind = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/kind/delete`, data)



    static getGoodsPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/goods/pageList`, params)

    static addGoods= (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/goods/add`, data)

    static updateGoods = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/goods/update/${id}`, data)

    static delGoods = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/goods/delete`, data)


    //     查询订单列表
    static getOrderPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/order/pageList`, params)


    //     查询订单列表
    static replenishExpress = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/order/replenishExpress`, data)



}
